﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
using System.Drawing.Imaging;
using System.Drawing.Drawing2D;
using System.Drawing.Text;
using System.IO;
using System.Reflection;
using Ue.Extensions;

namespace Ue.Components.VerificationCode
{
    public class VerifyCodeCharComponentOfDraw : IVerifyCodeCharComponents
    {
        #region IVerifyCodeCharComponents 成员

        public int Priority
        {
            get { return 50; }
        }

        public VerifyCodeStringComponent StringComponent { get; set; }

        public void Draw(ref Bitmap bitMap, ref Graphics graphics,ref Font font,ref Brush brush, char c)
        {
            graphics.DrawString(c.ToString(), font, brush, 0, VerifyCodeHolder.GetRandom(-2, 3));
        }

        #endregion
    }
}
